import Vue from 'vue'
import Vuex from 'vuex'

import getters from './getters'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex);

const state = {
    // lognUser: JSON.parse(window.localStorage.getItem('lognUser')),
    lognUser: null,
    allGoods: [],
    goodsType: [],
    cart: [],
    coupons: [],
    businessUser: {jurisdiction: []},
    systemMessage: {}
}

const store = new Vuex.Store({
    state,
    getters,
    actions,
    mutations
})
export default store